package shuashuami.hb.com.avtivity;

import android.os.Bundle;
import android.view.View;

import shuashuami.hb.com.hbclient.R;
import shuashuami.hb.com.hdlibrary.glid.GlidUtil;
import shuashuami.hb.com.view.ZoomImageView;

public class BigWebImageActivity extends AbActivity {

    private ZoomImageView imageView;
    private GlidUtil glidUtil;

    @Override
    protected void initUI() {
        setAbContentView(R.layout.activity_big_web_image);
        setLeftView();
        imageView = (ZoomImageView) findViewById(R.id.img_zoomimage);
    }

    @Override
    protected void initData() {

        setTitleBar("图片浏览");
        glidUtil = new GlidUtil(this);
 /*获取Intent中的Bundle对象*/
        Bundle bundle = this.getIntent().getExtras();

        /*获取Bundle中的数据，注意类型和key*/
        String name = bundle.getString("url");
        glidUtil.uploadImage(name, R.mipmap.app_logo, imageView);
    }

    @Override
    protected void initListener() {
        setLeftViewListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
